package com.ht.temp.mapper;

import com.ht.temp.entity.HourReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-24
 */
public interface HourReportMapper extends BaseMapper<HourReport> {
    //查询时报表某一天之前一天的时平均数据
    public List<HourReport> selectHourReportByDays(@Param("nowTime") String nowTime, @Param("afterTime") String afterTime, @Param("deviceId") Integer deviceId);

    //计算时报表某一天之前一天的时平均数据
    public HourReport selectHourReportByDaysAvg(@Param("nowTime") String nowTime, @Param("afterTime") String afterTime, @Param("deviceId") Integer deviceId);


    Integer insertHourReport(HourReport hourReport);
}
